package com.alibaba.service;


import com.alibaba.bean.Notice;
import com.alibaba.bean.User;
import com.alibaba.mapper.FollowNumMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FollowNumService {
    @Autowired
    FollowNumMapper followNumMapper;
    public int fansnum(int userId) {
        return followNumMapper.fansnum(userId);
    }
    public int followsnum(int userId){
        return followNumMapper.follownum(userId);
    }
    public User getUser(int userId){
        return followNumMapper.getUser(userId);
    }
    public List<Notice> findAll(){
        return followNumMapper.findcontent();
    }
    public Notice findAll1(){
        System.out.println("jkjkjj");
        return followNumMapper.findcontent1();
    }
    public Notice findAll2(){
        return followNumMapper.findcontent2();
    }
    public Notice findAll3(){
        return followNumMapper.findcontent3();
    }
    }

